package empentity;

import java.math.BigDecimal;
import java.rmi.RemoteException;
import java.util.Collection;
import javax.ejb.CreateException;
import javax.ejb.EJBHome;
import javax.ejb.FinderException;
import javax.ejb.ObjectNotFoundException;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author user
 */
public interface EmpHome extends EJBHome {

    public EmpComponent createEmp(BigDecimal empno, String ename, String job, java.sql.Date hiredate, BigDecimal salary, BigDecimal deptno) throws CreateException, RemoteException;

    public EmpComponent findByPrimaryKey(BigDecimal empno) throws ObjectNotFoundException, FinderException, RemoteException;

    public Collection findByName(String ename) throws FinderException, RemoteException;
    public EmpComponent findByEmpno(BigDecimal empno) throws FinderException, RemoteException;
    public Collection findAll() throws FinderException, RemoteException;
    public Collection findByJob(String job) throws FinderException, RemoteException;
    public Collection findByDeptno(BigDecimal deptno) throws FinderException, RemoteException;

}
